package cn.bobohost.crmrbac;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.junit.jupiter.api.Test;

import java.util.UUID;

public class IdGenerator {

    @Test
    void testUUID(){
        System.out.println(UUID.randomUUID());
        System.out.println(UUID.randomUUID());
        System.out.println(UUID.randomUUID());
        System.out.println(UUID.randomUUID());
    }

    @Test
    void testSnow(){
        IdentifierGenerator identifierGenerator =new DefaultIdentifierGenerator();
        System.out.println(identifierGenerator.nextId(null));
        System.out.println(identifierGenerator.nextId(null));
        System.out.println(identifierGenerator.nextId(null));
        System.out.println(identifierGenerator.nextId(null));

    }
}
